<?php

class StudDataParser extends DataParser {

    public function parseData($data) {

        $studentArr = explode("\r\n", $data);
        $arr = array();
        foreach ($studentArr as $studendData) {
            $item = explode(',', $studendData);
            if (count($item) > 1) {
                $arr[] = $item;
            }
        }
        $this->setTotalItems(count($arr));
        return $arr;
    }
}
